home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Local / External / CMochiBot.as < prev    next >
Encoding:
Text File  |  2011-08-19  |  6.9 KB  |  263 lines

  1.  
  2. {
  3.    if(true)
  4.    {
  5.       CMochiBot = ┬º┬ºnewclass(CMochiBot,Sprite);
  6.    }
  7. }
  8.  
  9. package Local.External
  10. {
  11.    import flash.display.DisplayObject;
  12.    import flash.display.Loader;
  13.    import flash.display.Sprite;
  14.    import flash.events.Event;
  15.    import flash.events.IOErrorEvent;
  16.    import flash.net.URLRequest;
  17.    import flash.net.URLRequestMethod;
  18.    import flash.net.URLVariables;
  19.    import flash.system.Capabilities;
  20.    import flash.system.Security;
  21.    
  22.    public dynamic class CMochiBot extends Sprite
  23.    {
  24.       
  25.       public static function SHZ_BO_SHADEZWEBSITE_VISIT():*
  26.       {
  27.          Track("687d8c08");
  28.       }
  29.       public static function SHZ_BO_SPONSORVISIT_LEVELSELECTION():*
  30.       {
  31.          SHZ_BO_SPONSORVISIT_TOTAL();
  32.          Track("44e9c657");
  33.       }
  34.       public static function SHZ_BO_UNIQUES():*
  35.       {
  36.          Track("6d4f3ba4");
  37.       }
  38.       public static var mPending:Boolean = false;
  39.       
  40.       public static function SHZ_BO_LEVELSPLAYED():*
  41.       {
  42.          Track("e904578e");
  43.       }
  44.       private static var mStack:Array;
  45.       
  46.       public static function SHZ_BO_VISITS():*
  47.       {
  48.          Track("d1b4e487");
  49.       }
  50.       public static function SHZ_BO_SPONSORVISIT_MAIN():*
  51.       {
  52.          SHZ_BO_SPONSORVISIT_TOTAL();
  53.          Track("e62648e8");
  54.       }
  55.       public static function SHZ_BO_LEVELPLAY_1():*
  56.       {
  57.          SHZ_BO_LEVELSPLAYED();
  58.          Track("2f3329ce");
  59.       }
  60.       public static function SHZ_BO_LEVELPLAY_2():*
  61.       {
  62.          SHZ_BO_LEVELSPLAYED();
  63.          Track("0216f37e");
  64.       }
  65.       public static function SHZ_BO_LEVELPLAY_3():*
  66.       {
  67.          SHZ_BO_LEVELSPLAYED();
  68.          Track("0e03b60e");
  69.       }
  70.       public static function SHZ_BO_LEVELPLAY_4():*
  71.       {
  72.          SHZ_BO_LEVELSPLAYED();
  73.          Track("2790667b");
  74.       }
  75.       public static function SHZ_BO_GAMEGUIDE_VISIT():*
  76.       {
  77.          SHZ_BO_SPONSORVISIT_TOTAL();
  78.          Track("7241b30f");
  79.       }
  80.       public static function SHZ_BO_SPONSORVISIT_DEBRIEF():*
  81.       {
  82.          SHZ_BO_SPONSORVISIT_TOTAL();
  83.          Track("7750b6d3");
  84.       }
  85.       public static function SHZ_BO_ADSDISPLAYED():*
  86.       {
  87.          Track("cc77eee5");
  88.       }
  89.       public static function SHZ_BO_TRAILER_VISIT():*
  90.       {
  91.          SHZ_BO_SPONSORVISIT_TOTAL();
  92.          Track("f0eace5a");
  93.       }
  94.       public static function SHZ_BO_SPONSORVISIT_TOTAL():*
  95.       {
  96.          Track("7293a1f0");
  97.       }
  98.       public static var mRoot:DisplayObject;
  99.       
  100.       public static function SHZ_BO_ENCRYPTIONVISIT():*
  101.       {
  102.          Track("b7dc2c5d");
  103.       }
  104.       public static function SHZ_BO_HISCOREVIEWS():*
  105.       {
  106.          Track("c9d383f7");
  107.       }
  108.       public static function SHZ_BO_HISCOREPOSTED():*
  109.       {
  110.          Track("0d5a2988");
  111.       }
  112.       public static function SHZ_BO_MOCHIBOTVISIT():*
  113.       {
  114.          Track("39097efa");
  115.       }
  116.       public static function SHZ_BO_GAMESWEBSITE_VISIT():*
  117.       {
  118.          Track("1097373f");
  119.       } 
  120.       
  121.       private var mLoader:Loader;
  122.       
  123.       private var mTag:String;
  124.       
  125.       private var mReq:URLRequest;
  126.       
  127.       public function CMochiBot()
  128.       {
  129.          super();
  130.       }
  131.       
  132.       private static function e_IOERROR(param1:IOErrorEvent) : void
  133.       {
  134.          if(true)
  135.          {
  136.             mPending = false;
  137.             NextInStack();
  138.          }
  139.       }
  140.       
  141.       public static function Track(param1:String) : void
  142.       {
  143.          var _loc2_:CMochiBot = null;
  144.          var _loc3_:String = null;
  145.          var _loc4_:URLVariables = null;
  146.          var _loc5_:String = null;
  147.          var _loc6_:URLRequest = null;
  148.          var _loc7_:Loader = null;
  149.          if(Security.sandboxType == "localWithFile")
  150.          {
  151.             return;
  152.          }
  153.          if(param1 == null)
  154.          {
  155.             return;
  156.          }
  157.          _loc2_ = new CMochiBot();
  158.          Security.allowDomain("*");
  159.          Security.allowInsecureDomain("*");
  160.          _loc3_ = "http://core.mochibot.com/my/core.swf";
  161.          (_loc4_ = new URLVariables())["sb"] = Security.sandboxType;
  162.          _loc4_["v"] = Capabilities.version;
  163.          _loc4_["swfid"] = param1;
  164.          _loc4_["mv"] = "8";
  165.          _loc4_["fv"] = "9";
  166.          _loc5_ = mRoot.loaderInfo.loaderURL;
  167.          _loc4_["url"] = _loc5_.indexOf("http") == 0 ? _loc5_ : "local";
  168.          (_loc6_ = new URLRequest(_loc3_)).contentType = "application/x-www-form-urlencoded";
  169.          if(true)
  170.          {
  171.             _loc6_.method = URLRequestMethod.POST;
  172.             _loc6_.data = _loc4_;
  173.          }
  174.          _loc7_ = new Loader();
  175.          if(true)
  176.          {
  177.             _loc2_.mTag = param1;
  178.             if(true)
  179.             {
  180.                _loc2_.mLoader = _loc7_;
  181.                _loc2_.mReq = _loc6_;
  182.             }
  183.             Stack(_loc2_);
  184.          }
  185.       }
  186.       
  187.       private static function NextInStack() : void
  188.       {
  189.          var _loc1_:CMochiBot = null;
  190.          if(!mStack.length)
  191.          {
  192.             return;
  193.          }
  194.          _loc1_ = mStack.shift();
  195.          if(true)
  196.          {
  197.             _loc1_.addChild(_loc1_.mLoader);
  198.             if(true)
  199.             {
  200.                _loc1_.mLoader.load(_loc1_.mReq);
  201.                if(true)
  202.                {
  203.                   mPending = true;
  204.                }
  205.                _loc1_.mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,e_COMPLETE);
  206.             }
  207.             _loc1_.mLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,e_IOERROR);
  208.          }
  209.       }
  210.       
  211.       private static function e_COMPLETE(param1:Event) : void
  212.       {
  213.          mPending = false;
  214.          NextInStack();
  215.       }
  216.       
  217.       private static function Stack(param1:CMochiBot) : void
  218.       {
  219.          if(true)
  220.          {
  221.             ┬º┬ºpush(!mStack);
  222.             if(!!mStack)
  223.             {
  224.                ┬º┬ºpop();
  225.                if(true)
  226.                {
  227.                   addr28:
  228.                   if(!mStack.length)
  229.                   {
  230.                      if(true)
  231.                      {
  232.                         mStack = [param1];
  233.                         if(mPending)
  234.                         {
  235.                         }
  236.                         addr50:
  237.                         return;
  238.                         addr46:
  239.                      }
  240.                      NextInStack();
  241.                   }
  242.                   else
  243.                   {
  244.                      mStack.push(param1);
  245.                      ┬º┬ºgoto(addr50);
  246.                   }
  247.                   ┬º┬ºgoto(addr50);
  248.                }
  249.                ┬º┬ºgoto(addr46);
  250.             }
  251.             ┬º┬ºgoto(addr28);
  252.          }
  253.          ┬º┬ºgoto(addr50);
  254.       }
  255.       
  256.       public static function ActivateTracking(param1:DisplayObject) : void
  257.       {
  258.          mRoot = param1;
  259.          SHZ_BO_VISITS();
  260.       }
  261.    }
  262. }
  263.